async function onScan (qrcode: any, status: Number) {
    require('qrcode-terminal').generate(qrcode, {small: true})
  
    const qrcodeImageUrl = [
      'https://api.qrserver.com/v1/create-qr-code/?data=',
      encodeURIComponent(qrcode),
    ].join('')
  
    console.log(status, qrcodeImageUrl)
  }
  
  module.exports = onScan